home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’92 / PatchWorks Kit / <PatchWorks++> / Patch.a < prev    next >
Encoding:
Text File  |  1992-05-15  |  696 b   |  24 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    Patch.a
  3. ;
  4. ;    Patch object layout.
  5. ;
  6.  
  7. Patch                RECORD        0    ; the field in braces is at offset 0.
  8. itsClassId            DS.W        1    ; THINK's class id.
  9. itsNext                DS.L        1    ; next patch after this one.
  10. itsBehavior            DS.L        1    ; routine to call when patch hit.
  11. itsOld                DS.L        1    ; old routine to call.
  12. itsStub                DS.L        1    ; the stub glue code.
  13. itsGlobals            DS.L        1    ; pointer to globals.
  14. itsInstalled        DS.B        1    ; if patch is installed.
  15. itsState            DS.B        1    ; state of patch (enabled/disabled).
  16. itsVTable            DS.L        1    ; virtual fuction table here!
  17.                     ENDR
  18.  
  19. PatchStub            RECORD        0
  20. itsJsrJmp            DS.W        1    ; jsr/jmp instruction.
  21. itsAddress            DS.L        1    ; address to jsr/jmp to.
  22. itsPatch            DS.L        1    ; instance of the patch.
  23.                     ENDR
  24.